Unemployment trends has been a major player in both the political and financial realms of the United States. It is vital to keep track of unemployment as it has the potential to impact many people and industries in the country. Then we were looking for the possible factors that might affect the unemployment rate. Firstly, we thought stock would be a great factor, but it was also very broad. Then we chose the currency and financial banks as the main factor to analysis, since we think those two factors related the most to the companies and exporting and inporting problems. Our purpose is going to find a model to show how the currency stock and the bank company stock related to the unemployment rate.
We have data downloaded from website https://data.bls.gov/timeseries/LNS14000000 to get the unemployment rate in the US from 2007 to 2016. For the stock rate for each banks, we got the data from yahoo finance. https://finance.yahoo.com/industries/financial. We got the stock data for the top five companies monthly from the start of 2007 to the end of 2016. Our focus would on the ‘close’ rate for that.
wClose is the close price for Wells fargo, bClose is the close price for Bank of America, cClose is the close price for citigroup, hClose is the close price fo HSBC, and then jClose is the close price for JPMorgan, unemployment is just the unemployment rate each month.
## [1] "Date" "wClose" "unemployment" "bClose"
## [5] "cClose" "hClose" "jClose"
After viewing this, we have a graph to plot how these stocks varies with the unemployment rate each month from 2007 to 2016. Then we got the first plot.
From this plot, we can actually see a basic trend that while bank stock is increasing, the unemployment is decreasing. However, while the bank stock is decreasing, the unemployment rate is increasing. Then we are thinking there might be some relationships between them, so we decided to do some modeling to check what is actually affecting them.
Linear regression was the first type of regression analysis to be studied rigorously, and to be used extensively in practical applications. This is because models which depend linearly on their unknown parameters are easier to fit than models which are non-linearly related to their parameters and because the statistical properties of the resulting estimators are easier to determine. We also find that linear regression model works good for continuous dataset. So that’s why we chose linear regression model.
##
## Call:
## lm(formula = unemployment ~ wClose, data = totalData)
##
## Residuals:
## Min 1Q Median 3Q Max
## -2.9769 -0.8313 0.5009 0.8883 2.4500
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 11.09289 0.46553 23.828 < 2e-16 ***
## wClose -0.11002 0.01201 -9.164 1.9e-15 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 1.421 on 118 degrees of freedom
## Multiple R-squared: 0.4158, Adjusted R-squared: 0.4108
## F-statistic: 83.97 on 1 and 118 DF, p-value: 1.904e-15
From this summary, we can tell that estimate coefficient for Wells Fargo stock rate and unemployment is -0.11002, and it is pretty siginificant since Pr value is really small. Which indicates there’s really some relation between them.
##
## Call:
## lm(formula = unemployment ~ bClose, data = totalData)
##
## Residuals:
## Min 1Q Median 3Q Max
## -2.65220 -1.10863 0.04433 0.76897 2.82819
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 8.68061 0.24825 34.968 < 2e-16 ***
## bClose -0.09013 0.01111 -8.111 5.34e-13 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 1.489 on 118 degrees of freedom
## Multiple R-squared: 0.358, Adjusted R-squared: 0.3525
## F-statistic: 65.79 on 1 and 118 DF, p-value: 5.338e-13
From this summary, we can tell that estimate coefficient for Bank of America stock rate and unemployment is -0.09013, and it is pretty siginificant since Pr value is really small. Which indicates there’s really some relation between them.
##
## Call:
## lm(formula = unemployment ~ cClose, data = totalData)
##
## Residuals:
## Min 1Q Median 3Q Max
## -2.7254 -1.0433 0.2645 0.8927 2.7359
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 9.293245 0.228008 40.76 <2e-16 ***
## cClose -0.070344 0.006019 -11.69 <2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 1.265 on 118 degrees of freedom
## Multiple R-squared: 0.5365, Adjusted R-squared: 0.5326
## F-statistic: 136.6 on 1 and 118 DF, p-value: < 2.2e-16
From this summary, we can tell that estimate coefficient for Citigroup stock rate and unemployment is -0.070344, and it is pretty siginificant since Pr value is really small. Which indicates there’s really some relation between them.
##
## Call:
## lm(formula = unemployment ~ hClose, data = totalData)
##
## Residuals:
## Min 1Q Median 3Q Max
## -3.05301 -1.25275 0.02141 1.38006 3.08693
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 8.900612 0.544788 16.338 < 2e-16 ***
## hClose -0.035376 0.009667 -3.659 0.000379 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 1.761 on 118 degrees of freedom
## Multiple R-squared: 0.1019, Adjusted R-squared: 0.09431
## F-statistic: 13.39 on 1 and 118 DF, p-value: 0.0003794
From this summary, we can tell that estimate coefficient for HSBC stock rate and unemployment is -0.035376, and it is pretty siginificant since Pr value is really small. Which indicates there’s really some relation between them.
##
## Call:
## lm(formula = unemployment ~ jClose, data = totalData)
##
## Residuals:
## Min 1Q Median 3Q Max
## -2.88261 -0.69950 0.08096 0.98291 2.53481
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 11.92118 0.54865 21.728 < 2e-16 ***
## jClose -0.10181 0.01102 -9.237 1.28e-15 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 1.416 on 118 degrees of freedom
## Multiple R-squared: 0.4196, Adjusted R-squared: 0.4147
## F-statistic: 85.33 on 1 and 118 DF, p-value: 1.278e-15
From this summary, we can tell that estimate coefficient for JPMorgan stock rate and unemployment is -0.10181, and it is pretty siginificant since Pr value is really small. Which indicates there’s really some relation between them.
According to the summary of five linear models of five banks and unemployment rate, we find all of there stock rates really affecting the unemployment rate. And the Wells Fargo affect the unemployment rate the most, since it has the largest absolute coefficient value. Maybe due to it is ranked the first place at the stock marketing.